Skip to content

feat(pipelines): add manage field to CreateCertificateStep (ARO-28053)#261

Merged
janboll merged 1 commit into
mainfrom
create-certificate-manage
Jul 2, 2026
Merged

feat(pipelines): add manage field to CreateCertificateStep (ARO-28053)#261
janboll merged 1 commit into
mainfrom
create-certificate-manage

Conversation

@geoberle

@geoberle geoberle commented Jul 2, 2026

Copy link
Copy Markdown
Collaborator

What

Allow disabling certificate management via an optional manage Value field. Value range Enabled/Disabled. Absence will be interpreted as enabled downstream.

Why

Some environments (e.g. FPA and GA in DEV/INT) manage certificates differently, and the pipeline step needs to be skippable without removing it from the config.

https://redhat.atlassian.net/browse/ARO-28053

Copilot AI review requested due to automatic review settings July 2, 2026 09:16

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR extends the pipeline type system and JSON schema to support an optional manage field on the CreateCertificate step, allowing certificate management to be conditionally disabled without removing the step from pipeline configuration.

Changes:

  • Added manage as a new Value field on CreateCertificateStep.
  • Extended pipeline.schema.v1.json to allow the manage property in CreateCertificate steps.
  • Updated golden fixture output and RequiredInputs() unit test expectations to include the new field.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
pipelines/types/common.go Adds Manage Value to CreateCertificateStep and includes it in RequiredInputs() dependency collection.
pipelines/types/common_test.go Extends TestRequiredInputs to cover Manage when it is input-chained.
pipelines/types/pipeline.schema.v1.json Adds manage to the createCertificateStep schema properties.
pipelines/types/testdata/zz_fixture_TestNewPipelineFromFile.yaml Updates the golden fixture to include the new manage field in the serialized pipeline output.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread pipelines/types/pipeline.schema.v1.json
@geoberle geoberle force-pushed the create-certificate-manage branch 2 times, most recently from 890002b to 60fa2b2 Compare July 2, 2026 10:22
Copilot AI review requested due to automatic review settings July 2, 2026 10:22

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

Comment thread pipelines/types/testdata/zz_fixture_TestNewPipelineFromFile.yaml Outdated
Comment on lines 95 to 101
SecretKeyVault: Value{Input: &Input{StepDependency: StepDependency{ResourceGroup: "rg", Step: "step5"}}},
SecretName: Value{Input: &Input{StepDependency: StepDependency{ResourceGroup: "rg", Step: "step6"}}},
ApplicationId: Value{Input: &Input{StepDependency: StepDependency{ResourceGroup: "rg", Step: "step7"}}},
CommonName: Value{Input: &Input{StepDependency: StepDependency{ResourceGroup: "rg", Step: "step8"}}},
Manage: Value{ConfigRef: "some.config.manage"},
},
expected: []StepDependency{
Comment thread pipelines/types/common.go Outdated
@geoberle geoberle force-pushed the create-certificate-manage branch from 60fa2b2 to 50e90a5 Compare July 2, 2026 11:40
Copilot AI review requested due to automatic review settings July 2, 2026 12:03
@geoberle geoberle force-pushed the create-certificate-manage branch from 50e90a5 to 518cf59 Compare July 2, 2026 12:03

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.

Comment thread pipelines/types/common.go
Comment thread pipelines/types/common_test.go
Allow disabling certificate management per environment via an optional
`manage` Value field. Some environments (e.g. FPA and GA in DEV/INT)
manage certificates differently, and the pipeline step needs to be
skippable without removing it from the config.

https://redhat.atlassian.net/browse/ARO-28053
@geoberle geoberle force-pushed the create-certificate-manage branch from 518cf59 to 96c2899 Compare July 2, 2026 12:23
@janboll

janboll commented Jul 2, 2026

Copy link
Copy Markdown
Collaborator

/lgtm

@janboll janboll merged commit e47bc34 into main Jul 2, 2026
2 checks passed
geoberle added a commit to Azure/ARO-HCP that referenced this pull request Jul 3, 2026
Implements the manage gate for CreateCertificate steps, allowing
pipelines to conditionally skip certificate creation based on a
config-driven "Enabled"/"Disabled" value. When manage is nil (default),
the step proceeds as before, preserving backward compatibility.

Upstream: Azure/ARO-Tools#261
Ref: https://redhat.atlassian.net/browse/ARO-28053
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants